<?php
	$userFile = "$userCmd.object.php";
	$userFullFile = "./modules/user/$userFile";
	if (in_array($userFile,$modules['user']))
	{
		$cli->write("TYPE = $cmdType |||| CMD = $userCmd |||| PLACE = 2\n");
		//pacifico, crazor, 56K, or rki - one of you - we need a better module syntax
		include_once($userFullFile);
		$module = new $userCmd();
		$module->setUp($userData[0],$curCon,$parse);
		$module->activate();
		$out = $module->getOutput();
		if (is_array($out))
		{
			$curCon->sendRaw('PRIVMSG '.$out[1].' :'.$out[0]);
		}
		else
		{
			$tokens[0] = array ('{TEST}');
			$tokens[1] = array ('TEST');
			$curCon->sendRaw(tokenize($out,$tokens));
		}
		//$module=null; //not needed
	}
?>
